﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace ca2simulator.shared
{
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct Cell
    {
        public CellState CellState;
    }

    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct CellChange
    {
        public CellLocation Location;
        public CellState State;
    }

    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct CellState
    {
        public byte State;
    }
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct CellLocation
    {
        public CellLocation(int r, int c)
        {
            row = r;
            col = c;
        }
        public int row, col;
    }
}
